<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?=ADMIN_RES_PATH ?>/css/default/admin.css" rel="stylesheet" type="text/css">
<script src="<?=ADMIN_RES_PATH ?>/js/jquery-1.7.1.js" type="text/javascript"></script>
<script src="<?=ADMIN_RES_PATH ?>/js/public.js" type="text/javascript"></script>
</head>
<body>
    <div id="main">
    	<div class="title">首页管理</div>
    	<div class="content">
        <span>
    	<h3 style="margin-top: 20px; margin-left: 10px;">板块配置</h3>
    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:2px;" class="mytab">
      <tr style="background:#BBDDE5" id="h">
          <td width="10%" align="center">ID</td>
          <td width="30%" align="center">名称</td>
          <td width="10%" align="center">排序</td>
      	<td width="30%" align="center">包含分类</td>
          <td width="20%" align="center">操作</td>
      </tr>
     <?php
     $tblcate = $this->tblcate;
     foreach ($this->plates as $plate) {?>
      <tr class="newtr">
        <td align="center" style="color:#aaa"><?=$plate['id'] ?></td>
        <td align="center"><?=$plate['name'] ?></td>
        <td align="center"><?=$plate['order'] ?></td>
     	<td align="center">
            <?php
                echo $tblcate->getCateName($plate['cate1']).',';
                echo $tblcate->getCateName($plate['cate2']).',';
                echo $tblcate->getCateName($plate['cate3']);
            ?>
        </td>
        <td align="center">
    		<a href="<?=ADMIN_PATH ?>/Plate/editplate/id/<?=$plate['id'] ?>">修改</a>&nbsp;&nbsp;
    		<a href="<?=ADMIN_PATH ?>/Plate/delplate/id/<?=$plate['id'] ?>" onClick="return confirm('您确定要删除该板块吗？')">删除</a>
    	</td>
      </tr>
     <?php } ?>
     <tr >
        <td colspan="5" align="center"><a href="<?=ADMIN_PATH ?>/Plate/addplate">新增栏目</a>&nbsp;&nbsp;</td>
      </tr>
    </table>

    </span>
    	</div>

    </div>
</body>
</html>
